




  // 选择分组/批次
const select=(that, e)=>{
    that.setData({
      'page_data.ins_id':that.data.ins_list[e.currentTarget.id].id,
      'page_data.ins_name':that.data.ins_list[e.currentTarget.id].name,
      show_page_container:false,
    })
  }





  // 清除已选操作内容
const clear=(that)=>{
  let page_data = that.data.page_data
  delete page_data.ins_id
  that.setData({
    page_data,
    show_page_container:false,
  })
  }

  const mana_ins=(that,jg_id)=>{
    clear(that)  // 清除已选操作内容,因为有可能其选择了关闭的标签
    setTimeout(() => {
      wx.navigateTo({
        url:'/pages/jgs/jg_job/jg_job?jg_id=' + jg_id
      })
    }, 100);
  }

  module.exports={
    select:select,
    clear:clear,
    mana_ins:mana_ins,
  }